package day0811;

import java.util.Scanner;

/**
 * @Author:galaxy_yan
 * @Date: 2022/8/14
 * @Time: 9:21
 * @Version 1.0
 * 作业标题(1676)
 * 模拟登陆
 */
public class text5 {
    public static void main(String[] args) {
        String str="qwe127";
        System.out.println("请输入密码：");

        Scanner sc=new Scanner(System.in);
        String str1=sc.next();
        int count=1;
        while(count<3){
            if(str.equals(str1)){
                System.out.println("登录成功");
                return;
            }else {
                System.out.println("密码错误：" +"请重新输入密码:");
                str1=sc.next();
                count++;
            }
        }
        System.out.println("账号已锁定，30min后重试！！！");
    }
}
